﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<VERKProjectHopur16.Models.PasswordRequestViewModel>" %>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.Name) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Name)%>
                <%: Html.ValidationMessageFor(model => model.Name)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Email) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Email) %>
                <%: Html.ValidationMessageFor(model => model.Email) %>
            </div>
            
            <div class="editor-label" style="display:none">
                <%: Html.LabelFor(model => model.ChildID) %>
            </div>
            <div class="editor-field" style="display:none">
                <%: Html.TextBoxFor(model => model.ChildID)%>
                <%: Html.ValidationMessageFor(model => model.ChildID)%>
            </div>

            <p>
                <input type="submit" value="Request Password" />
            </p>
        </fieldset>
        <p>An Email will be send to parent of child requesting the password</p>
        <p>to access the child´s timeline on your behalf.</p>

    <% } %>

    <div>
        <%: Html.ActionLink("Back", "AllChildren") %>
    </div>


